package com.ideal.core.table;

/**
 * @author
 */
public class ColumnPropertyConverter {
    /**
     * 属性名
     */
    private String propertyName;
    /**
     * 属性名大写
     */
    private String propertyNameUpCase;
    /**
     * 属性备注
     */
    private String comment;
    /**
     * 属性类型
     */
    private String type;
    /**
     * 属性类简写
     */
    private String classSimpleName;
    /**
     * 列名
     */
    private String columnName;
    /**
     * 是否为主键
     */
    private boolean isPrimary;

    /**
     * El Property
     * @return
     */
    private String elPropertyName;

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getPropertyNameUpCase() {
        return propertyNameUpCase;
    }

    public void setPropertyNameUpCase(String propertyNameUpCase) {
        this.propertyNameUpCase = propertyNameUpCase;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getClassSimpleName() {
        return classSimpleName;
    }

    public void setClassSimpleName(String classSimpleName) {
        this.classSimpleName = classSimpleName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean primary) {
        isPrimary = primary;
    }

    public String getElPropertyName() {
        return elPropertyName;
    }

    public void setElPropertyName(String elPropertyName) {
        this.elPropertyName = elPropertyName;
    }

    public ColumnPropertyConverter(String propertyName, String propertyNameUpCase, String comment, String type, String classSimpleName, String columnName, boolean isPrimary, String elPropertyName) {
        this.propertyName = propertyName;
        this.propertyNameUpCase = propertyNameUpCase;
        this.comment = comment;
        this.type = type;
        this.classSimpleName = classSimpleName;
        this.columnName = columnName;
        this.isPrimary = isPrimary;
        this.elPropertyName = elPropertyName;
    }

    public ColumnPropertyConverter() {
    }
}
